package aiguigu08.constructor.exer1;

/**
 * ClassName: StudentTest
 * Package: aiguigu08.constructor
 * Description:
 *
 * @Author ZY
 * @Create 2024/10/11 21:55
 * @Version 1.0
 */
public class StudentTest {
    public static void main(String[] args) {

        Student s1 = new Student("张三",34,"南华","社会学");
        System.out.println(s1.getInfo());

        Student s2 = new Student("红茶哥",30,"理工");
        System.out.println(s2.getInfo());



    }
}
